package com.zxm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

	/**
	 * 调整致程序首页
	 */
	@RequestMapping("/index")
	public String index() {
		return "userInfoJSP/showAllUsers";
	}
	@RequestMapping("/{page}")
	public String test(@PathVariable("page")String page) {
		return page;
	}


    /**
     * 用户页面跳转
     */
    @RequestMapping("/userInfoJSP/{page}")
    public String userInfoPage(@PathVariable("page")String page) {
        return "userInfoJSP/"+page;
    }
	/**
	 * 运动页面跳转
	 */
	@RequestMapping("/sportDetailJSP/{page}")
	public String sportPage(@PathVariable("page")String page) {
	    return "sportDetailJSP/"+page;
	}


}
